import request from '@/utils/request'
import { BASE_URL } from '@/api'
import type { Users } from './types/user'

enum API {
  findAll = '/user/list'
}

// user list
const findAll = (): Promise<Users> => {
  return request.get(BASE_URL + API.findAll)
}

export default { findAll }
